package com.jic.market.request.rest.groupon;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author xuyongliang
 * @version V1.0
 * @className CurrentJoinedGrouponRequest
 * @description TODO
 * @date 2020/4/14
 */

@ApiModel(description = "当前活动参团列表H5请求类")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CurrentJoinedGrouponRequest implements Serializable {

    private static final long serialVersionUID = 5527754459688845113L;

    @ApiModelProperty(notes = "拼团编号")
    private String groupCode;

    @ApiModelProperty(notes = "第三方商品编码")
    private String thirdProductCode;

    @ApiModelProperty(notes = "spuId")
    private Long spuId;

    @ApiModelProperty(notes = "第三方用户id")
    private String thirdUserId;

    @ApiModelProperty("登录用户token")
    private String token;

    @NotNull(message = "缺少 start 参数")
    @ApiModelProperty(value = "当前页" , required = true)
    private Integer start;

    @NotNull(message = "缺少 limit 参数")
    @ApiModelProperty(value = "当前页总条数" , required = true)
    private Integer limit;

    @ApiModelProperty(value = "拼团实例编码")
    private String groupInstCode;
}
